<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <script>
        var arr = new Array();
        arr[0]="21";
        arr[1]="dawd";
        arr[2]="daw";
        console.log(arr)
        var string="1";
        const sJson=JSON.stringify(string);
        console.log(sJson+"json")
        const JsonArray=JSON.stringify(arr);
        console.log(JsonArray)
    </script>
</head>
<body>

</body>
</html>